package org.example.service;

import org.example.pojo.entity.User;

public interface UserService {
    boolean existsByUsername(String username);
    String generateVerificationCode();
    void saveVerificationCode(String email, String code);
    boolean verifyCode(String username, String code);
    void registerNewUser(String username, String password, String email);
    User findByAccount(String account);
    User findById(long id);
}
